package com.mr.web;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.mr.web.app.CategoryApp;

@Controller
@RequestMapping("/index.htm")
public class IndexController {

	@Resource
	private CategoryApp app;

	@RequestMapping()
	public ModelMap render() throws Exception {
		ModelMap model = new ModelMap();
		app.load(model);
		return model;
	}
}
